import { createApp } from 'vue'
import App from './App.vue'
import { createRouter, createWebHashHistory } from 'vue-router'

import Privacy from './components/Privacy.vue'
import Home from './components/Home.vue'

const routes = [
    { path: '/', component: Home },
    { path: '/app', component: Home },
    { path: '/privacy', component: Privacy },
]

const router = createRouter({
    // 4. Provide the history implementation to use. We are using the hash history for simplicity here.
    history: createWebHashHistory(),
    routes, // short for `routes: routes`
})

const app = createApp(App)
// Make sure to _use_ the router instance to make the
// whole app router-aware.
app.use(router)

app.mount('#app')
// createApp(App).mount('#app')